﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Header.ascx.cs" Inherits="Controls_Header" %>
<%@ Register Src="~/Controls/Login.ascx" TagPrefix="uc1" TagName="Login" %>
<%@ Register Src="~/Controls/MenuMain.ascx" TagPrefix="uc1" TagName="MenuMain" %>


<header>
    <div class="loiichky">
    <div class="navbar  navbar-fixed-top navbar-inverse " role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <asp:HyperLink ID="HyperLink2" runat="server" CssClass="navbar-brand" NavigateUrl="~/Default.aspx">
      <span class="glyphicon glyphicon-earphone"></span> 01656.432.506
                </asp:HyperLink>
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav navbar-right">
                    <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><span
                        class="glyphicon glyphicon-shopping-cart"></span>Giỏ Hàng 
                    </a>
                        <ul class="dropdown-menu">
                            <asp:Panel ID="Panel1" runat="server">
                                <li>
                                    <span>Chưa có sản phẩm nào !</span>

                                </li>
                            </asp:Panel>
                            <asp:Panel ID="Panel2" runat="server">
                                <li>
                                    <asp:GridView ID="gridGiohang" runat="server" AutoGenerateColumns="False" ShowHeader="False" Width="300px" GridLines="None">
                                        <Columns>
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <asp:Image ID="Image2" runat="server" CssClass="news-img"
                                                        ImageUrl='<%# "~/"+Eval("Hinhanh") %>'
                                                        ToolTip='<%# Eval("TenSP") %>' Height="40px" Width="40px" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <asp:HyperLink ID="HyperLink4" runat="server" CssClass="cart-color"
                                                        NavigateUrl='<%# Eval("MaSP", "../Product-Detail.aspx?masp={0}") %>'
                                                        Text='<%# Eval("TenSP") %>'></asp:HyperLink>
                                                    <asp:Label ID="lblMaSP" runat="server" Text='<%# Bind("masp") %>'
                                                        Visible="False"></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <asp:Label ID="lblDonGia" runat="server" CssClass="cart-color" Text='<%#Eval("Gia","{0:0,00} ₫")%>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
                                    <li style="padding: 10px;">Tổng cộng:
                                <asp:Label ID="lblTongtien" runat="server" Text="0" CssClass="pull-right cart-color"></asp:Label>
                                    </li>
                                    <li style="text-align: center">
                                        <div class="col-md-6">
                                           
                                            <asp:HyperLink ID="HyperLink5" runat="server" CssClass="btn btn-sm btn-primary" NavigateUrl="~/GioHang.aspx">Giỏ Hàng</asp:HyperLink>
                                        </div>
                                        <div class="col-md-6">
                                            <asp:HyperLink ID="HyperLink6" runat="server" CssClass="btn btn-sm btn-danger" NavigateUrl="~/CheckOut.aspx">Thanh Toán</asp:HyperLink>
                                        </div>
                                    </li>
                                </li>
                            </asp:Panel>
                        </ul>
                    </li>
                    <li>
                        <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/CheckOut.aspx"><span class="fa fa-usd"></span> Thanh Toán</asp:HyperLink>
                    </li>
                    <li style="cursor: pointer">
                        <asp:HyperLink ID="linkDangNhap" runat="server" data-toggle="modal" data-target="#myModal"><span class="fa fa-power-off"></span> Đăng Nhập</asp:HyperLink>
                    </li>
                    <li class="dropdown user" id="header-user">
                        <asp:HyperLink ID="InfoUser" runat="server" CssClass="dropdown-toggle" data-toggle="dropdown" Visible="false">
                            <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/avat.png" />
                            <span class="username">
                                <asp:Label ID="lblNameUser" runat="server"></asp:Label>
                            </span>
                            <i class="fa fa-angle-down"></i>
                        </asp:HyperLink>
                        <ul class="dropdown-menu">
                            <li><a href="#"><i class="fa fa-user"></i>Hồ Sơ Cá Nhân</a></li>
                            <li>
                                <asp:Button ID="btnThoat" runat="server" Text="Thoát" CssClass="btn btn-sm btn-success" OnClick="btnThoat_Click" style="height: 26px" />
                            
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    </div>
    <!--   Ket Thuc NAV -->
    <div class="container">
        <div class="row">
            <%--Logo--%>
            <div class="col-md-7">
                <asp:HyperLink ID="HyperLink8" runat="server" NavigateUrl="~/Default.aspx">
                <img src="images/banner.jpg" alt="" height="120" width="100%" style="padding-left:15px;" />
            </asp:HyperLink>
                    </div>
            <%--  end logo--%>
            <div class="col-md-5">
                <div class="metro pull-right">
                    <ul>
                        <li class="tile bg-blueLOL">
                            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Default.aspx">
                                <div class="tile-content icon">
                                   <i class="fa fa-home"></i>
                                </div>
                                <div class="tile-status">
                                    <span class="name">TRANG CHỦ</span>
                                </div>
                            </asp:HyperLink>
                        </li>
                        <li class="tile bg-darkblueLOL tintuc">
                            <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="~/TinTuc.aspx">
                            <div class="tile-content icon">
                                <span class="fa fa-rss"></span>
                            </div>
                            <div class="tile-status">
                                <span class="name">TIN CÔNG NGHỆ</span>
                            </div>
                            </asp:HyperLink>
                        </li>
                        <li class="tile bg-blue">
                             <asp:HyperLink ID="HyperLink7" runat="server" NavigateUrl="~/ForumRaoVat.aspx">
                            <div class="tile-content icon">
                                <span class="fa fa-gavel"></span>
                            </div>
                            <div class="tile-status">
                                <span class="name">Rao Vặt</span>
                            </div>
                                        </asp:HyperLink>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <uc1:Login runat="server" ID="Login" />





</header>
